home *** CD-ROM | disk | FTP | other *** search
/ Super PC 34 / Super PC 34 (Shareware).iso / spc / UTIL / DJGPP2 / V2 / DJDEV200.ZIP / include / libc / dosio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-10  |  1.2 KB  |  47 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_libc_dosio_h__
  3. #define __dj_include_libc_dosio_h__
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  10.  
  11. #ifndef __STRICT_ANSI__
  12.  
  13. #ifndef _POSIX_SOURCE
  14.  
  15. /* set to O_BINARY or O_TEXT */
  16. extern char *__file_handle_modes;
  17. extern void __file_handle_set(int fd, int mode);
  18.  
  19. int __doserr_to_errno(int doserr);
  20.  
  21. /* puts "path" in the transfer buffer, fixing
  22.    unix-allowed multi-slashes */
  23. void _put_path(const char *_path);
  24. void _put_path2(const char *_path, int _offset);
  25.  
  26. /* Long file name support (Win95).  May make _USE_LFN a variable or disable */
  27. extern char _use_lfn(void);
  28. #define _USE_LFN _use_lfn()
  29.  
  30. /* Convenience functions for setting up transfers */
  31.  
  32. #define __tb_offset 0    /* (__tb & 15) Always paragraph aligned */
  33. #define __tb_segment (_go32_info_block.linear_address_of_transfer_buffer / 16)
  34.  
  35. #endif /* !_POSIX_SOURCE */
  36. #endif /* !__STRICT_ANSI__ */
  37. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  38.  
  39. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  40. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  41.  
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45.  
  46. #endif /* __dj_include_libc_dosio_h__ */
  47.